package com.gxuwz.attendance.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gxuwz.attendance.dao.CollegeDao;
import com.gxuwz.attendance.entity.College;
import com.gxuwz.attendance.service.CollegeService;
import com.gxuwz.attendance.vo.Page;

@Service("CollegeServiceImpl")
public class CollegeServiceImpl implements CollegeService {

	@Autowired
	private CollegeDao collegeDao;
	
	@Override
	public List<College> list(College college, Page page) {
		return collegeDao.list(college, page);
	}

	@Override
	public List<College> findByName(String collegeName) {
		return collegeDao.findByName(collegeName);
	}

	@Override
	public boolean delete(String ids) {
		return collegeDao.delete(ids);
	}

	@Override
	public boolean update(College college) {
		return collegeDao.update(college);
	}

	@Override
	public boolean add(College college) {
		return collegeDao.add(college);
	}

}
